package com.example.chinese;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class Star_4 extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity4);
        Button bt9=(Button)findViewById(R.id.bt9);
        Button bt10=(Button)findViewById(R.id.bt10);
        bt9.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name5","因镜头拍着继续笑:情绪崩溃 ，申请退赛");
                editor.commit();
                Intent intent9=new Intent(Star_4.this,Star_15.class);
                startActivity(intent9);
            }
        });
        bt10.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SharedPreferences sp=getSharedPreferences("data",MODE_PRIVATE);
                SharedPreferences.Editor editor=sp.edit();
                editor.putString("name5","勉强通过考核但你为自己实力感到可笑，你大声痛哭");
                editor.commit();
                Intent intent10=new Intent();
                intent10.setClass(Star_4.this,Star_5.class);
                startActivity(intent10);
            }
        });
    }
}
